package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author mengyb
 * @date 2019-04-16
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("MMRL_T")
public class MmrlT extends PO<MmrlT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRLENT",type = IdType.INPUT)
    private String MMRLENT;

    private String MMRL001;

    private String MMRL002;

    private String MMRLACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRLUSER;
    @TableField(fill = FieldFill.INSERT)
    private String MMRLGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String MMRLMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRLTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRLDATE;
    @TableField(fill = FieldFill.INSERT)
    private String MMRLORIG;
    @TableField(fill = FieldFill.INSERT)
    private String MMRLORIU;

    @Override
    protected Serializable pkVal() {
        return this.MMRLENT;
    }
}
